package edu.friday.controller;

import edu.friday.common.result.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController// =@Controller + @ResponseBody
@RequestMapping("/demo")
public class DemoController extends BaseController {
    @GetMapping
    public RestResult add() {
        boolean flag = true;
            return toAjax(flag ? 1 : 0);
    }
}
